﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CommonLib.Log
{
    public class TextAttribute : Attribute
    {
        string _Text;
        /// <summary>
        /// 显示的文本
        /// </summary>
        public string Text
        {
            get { return _Text; }
            set { _Text = value; }
        }

        string _Url;
        /// <summary>
        /// Url
        /// </summary>
        public string Url
        {
            get { return _Url; }
            set { _Url = value; }
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="text"></param>
        public TextAttribute(string text)
        {
            this._Text = text;
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="text"></param>
        /// <param name="url"></param>
        public TextAttribute(string text, string url)
        {
            this._Text = text;
            this._Url = url;
        }
    }
}
